﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UserMasterPage.master" AutoEventWireup="true"
    CodeFile="Forgotten Password.aspx.cs" Inherits="User_Forgotten_Password" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="content">
        <h1>
            Forgotten Password</h1>
        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
            <asp:View ID="View1" runat="server">
                <p>
                    If you have forgotten your password you may have a new one sent to your registered
                    email address.</p>
                <table border="0" cellspacing="0" cellpadding="5">
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <p>
                                Your Email Address:</p>
                        </td>
                        <td>
                            <p>
                                <asp:TextBox ID="txtEmail" Width="300px" runat="server"></asp:TextBox>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <p>
                                <asp:Button ID="btnNext" runat="server" Text="Next" Width="50px" OnClick="btnNext_Click" />
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label>
                            <br />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtEmail" ErrorMessage="Wrong email format"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                </table>
                <p>
                    If you are already a member, please <a href="Login.aspx">Login</a>
                </p>
            </asp:View>
            <asp:View ID="View2" runat="server">
                <p>
                    We sent a new password to your email</p>
                <div style="text-align: center">
                    <a href="Home.aspx">Back to home page</a></div>
            </asp:View>
        </asp:MultiView>
    </div>
</asp:Content>
